Micron Document
🎖️GitЯра🎖️

Commit 930dee09e5b3f23d02d0dc5aae3eeea61974bada


Parents : 6fb3776
Author : James Rich <2199651+jamesarich@users.noreply.github.com>
Signature : Signature validation error
Date : 2026-05-19T13:43:00-07:00
Committer : GitHub <noreply@github.com>
Date : 2026-05-19T15:43:00-05:00

build: reorder Maven repos to reduce flatpak generator 404s (#5509)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Changes

3 files changed, 20 insertions(+), 5 deletions(-)


Diff

diff --git a/.gitignore b/.gitignore
index faa540dfa4..3ec08e5a0a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -79,3 +79,6 @@ feature/docs/src/commonMain/composeResources/files/*/docs/
/.specify/extensions/.cache/
# Jekyll local config (comments out remote_theme for local builds)
docs/_config_local.yml
+
+# Flatpak source manifests (generated by flatpakGradleGenerator)
+flatpak-sources-*.json

diff --git a/build-logic/settings.gradle.kts b/build-logic/settings.gradle.kts
index 32a044ced9..65ba80c0b7 100644
--- a/build-logic/settings.gradle.kts
+++ b/build-logic/settings.gradle.kts
@@ -17,9 +17,15 @@
pluginManagement {
repositories {
- google()
mavenCentral()
gradlePluginPortal()
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
maven { url = uri("../offline-repository") }
}
}
@@ -31,6 +37,8 @@ plugins {
dependencyResolutionManagement {
repositories {
+ mavenCentral()
+ gradlePluginPortal()
google {
content {
includeGroupByRegex("com\\.android.*")
@@ -38,8 +46,6 @@ dependencyResolutionManagement {
includeGroupByRegex("androidx.*")
}
}
- mavenCentral()
- gradlePluginPortal()
maven { url = uri("../offline-repository") }
}
versionCatalogs {

diff --git a/settings.gradle.kts b/settings.gradle.kts
index da7e1295ac..b3aeb19e6a 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -18,9 +18,15 @@
pluginManagement {
includeBuild("build-logic")
repositories {
- google()
mavenCentral()
gradlePluginPortal()
+ google {
+ content {
+ includeGroupByRegex("com\\.android.*")
+ includeGroupByRegex("com\\.google.*")
+ includeGroupByRegex("androidx.*")
+ }
+ }
maven { url = uri("./offline-repository") }
}
}
@@ -37,6 +43,7 @@ dependencyResolutionManagement {
repositories {
// Only enable mavenLocal for local JitPack testing; never in CI.
if (providers.gradleProperty("useMavenLocal").isPresent) mavenLocal()
+ mavenCentral()
google {
content {
includeGroupByRegex("com\\.android.*")
@@ -44,7 +51,6 @@ dependencyResolutionManagement {
includeGroupByRegex("androidx.*")
}
}
- mavenCentral()
maven {
url = uri("https://central.sonatype.com/repository/maven-snapshots/")
mavenContent { snapshotsOnly() }

Served by rngit 1.5.2 - Generated in 0.06s